package arbore;
import visitors.Visitor;
public class Nod extends NodAbstract{
	protected NodAbstract nodS;
	protected NodAbstract nodD;
	
	public Nod(int x){
		this.x=x;
	}
	public Nod(int x, NodAbstract s, NodAbstract d){
		this.x=x;
		this.nodS=s;
		this.nodD=d;
	}
	public NodAbstract getNodS() {
		return nodS;
	}
	public void setNodS(NodAbstract nodS) {
		this.nodS = nodS;
	}
	public NodAbstract getNodD() {
		return nodD;
	}
	public void setNodD(NodAbstract nodD) {
		this.nodD = nodD;
	}
	public void acceptVisitor(Visitor v){
		v.visit(this);
	}
}
